import { storeBindingsBehavior } from 'mobx-miniprogram-bindings'
import base from "@src/store/base";

Component({
  behaviors: [storeBindingsBehavior],
  storeBindings: [{
    store: base,
    fields: ['themeColor', 'themeTitleColor']
  }],
  data: {
    listItem: {}
  },
  methods: {
    onLoad(options) {
      console.log("options", options)
      let listItem = JSON.parse(decodeURIComponent(options.json));
      this.setData({ listItem: listItem })
    }
  }
})
